package services;

import java.util.List;
import org.apache.openjpa.persistence.PersistenceException;
import domains.Image;

public interface IImageService {
	public Image findImageById(Integer id) throws PersistenceException;
	public Image findImageByDescriptionOfUser(String description, Integer id_user);
	public List<Image> getImagesOfUser(Integer id_user);
	public void deleteImageById(Integer id_image);
	public int addImageOfUser(Integer id_user, String description, String name, Integer height, Integer width);
	public int updateImage(Integer id_image, String description);
}
